package com.kayang.feishu.pojo;

import com.kayang.nadapt.util.JsonConvert;

import java.util.Map;

public abstract class BaseModel<T> {

    public Map toMap(T t){

        String jsonStr = JsonConvert.serializeObject(t);

        Map ret = JsonConvert.deserializeMap(jsonStr);

        return ret;

    }
}
